<layout name='Layout/layout_page' />
	
	<ol class="breadcrumb">
		<li><a href="<{:U('Goods/index')}>">商品管理</a></li>
      	<li><a href="<{:U('Goods/image',array('goodsID'=>$list['goodsID']))}>">【<{$name}>】图片</a></li>
      	<li class="active">编辑图片</li>
    </ol>
	
	<form id="ajaxForm" action="<{:U('Goods/updateImg')}>" method="post" class="form-horizontal form-validata">

		<div class="form-group">
			<label class="col-md-1 control-label" for="title">商品名称</label>
			<div class="col-md-11">
				<div class="form-control-static"><{$name}></div>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="picname">照片</label>
			<div class="col-md-11">
				<img class="thumbPic" id="picname_src" src="<{$list['picname']}>"/>
				<input type="hidden" name="picname" id="picname" value="<{$list['picname']}>" />
				<p class="pic-btn"><input type="button" value="上传" class="btn btn-default btn-sm" onclick="uploadImage( '<{:U('Admin/Upload/singleImage')}>' , 'picname')"/></p>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="sort">排序</label>
			<div class="col-md-1">
				<input type="text"
                class="form-control"
				class="input-small"
				name="sort"
				id="sort"
				value="<{$list['sort']}>"
				data-rule-required="true"
				data-rule-number="true"
				/>
				<p>数字越小越靠前</p>
			</div>
		</div>

	
		<div class="form-group">
			<div class="col-md-11 col-sm-offset-1">
				<button type="submit" class="btn btn-info">编辑</button>
			</div>
		</div>
		<input type="hidden" name="goodsID" value="<{$list['goodsID']}>" />
		<input type="hidden" name="id" value="<{$list['id']}>" />
	</form>

<input type="hidden" id="menu_action" value="goods" />